// 维保相关类型定义

export enum RequestType {
  MAINTENANCE = '保养',
  REPAIR = '维修',
}

export enum ApprovalStatus {
  APPROVED = '已批准',
  PENDING = '待审批',
  REJECTED = '已驳回',
}

// 维保申请接口
export interface MaintenanceRequest {
  requestId: number;
  vehicleId: number;
  driverId: number;
  licensePlate: string;
  driverName: string;
  requestType: RequestType;
  description: string;
  imageUrls?: string[];
  requestTime: string;
  approvalStatus: ApprovalStatus;
}

// 分页查询参数
export interface MaintenanceRequestQueryParams {
  page?: number;
  pageSize?: number;
  licensePlate?: string;
  driverName?: string;
  requestType?: RequestType;
}

// 审批请求参数
export interface ApprovalRequest {
  requestId: number;
  approvalStatus: ApprovalStatus;
  approvalNotes?: string;
}
